import easyquotation
from fastapi import Query

quotationQq = easyquotation.use('tencent')


def stocksHq_closed(ts_codes: str = Query(...)):
    ts_codes_list = ts_codes.split(',')
    stock_data = quotationQq.stocks(ts_codes_list, prefix=True)
    return stock_data
